package com.realtyreg.webview.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Petro
 * @created 09.09.2012 00:40
 */
@Controller
@RequestMapping("/")
public class MainController {
    //главная
    @RequestMapping(value = {"/", "/login"}, method = RequestMethod.GET)
    public String main() {
        return "main";
    }

    //доступ запрещен
    @RequestMapping(value = "/accessDenied", method = RequestMethod.GET)
    public String accessDenied() {
        return "accessDenied";
    }
}
